$(document).ready(function(){
	var date=new Date;
	var year=date.getFullYear();
	$('#fromyear').val(year);
	$('#toyear').val(year);
})

//下载申报报表
function downloadreport(){
	$.ajax( {  
        type : 'POST',  
        url : mainDomain + '/btsb/flreportyz.action',  
        data : 'fromyear=' + $('#fromyear').val() + '&toyear=' + $('#toyear').val(),  
        success : function(data) {
        	if(data.data.status==0){
        		document.getElementById("myform").submit();
        	}else{
        		$.messager.alert('提示', '该年份无数据', 'info');
        	}
        }
    })
}